package math;

/**
 * @Author admin
 * @Date 2019/3/27 10:39
 */
public class MathTest {
    public static void main(String[] args) {
        System.out.println("向下取整5.6"+Math.floor(5.6));
        System.out.println("四舍五入5.6"+Math.floor(5.6));
        System.out.println("2的3次方"+Math.pow(2,3));
        System.out.println("2和6的最大值"+Math.max(2,6));
        System.out.println("0到1之间的随机数"+Math.random());
    }
}
